package pri.damai.xiaowu.goods.server.api.web;

//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import pri.damai.xiaowu.goods.server.dto.RMsg;

import javax.annotation.Resource;

/**
 *
 * @Desc
 * @Author yxf
 * @Date 2022/4/6 21:34
 * 但行好事，莫问前程。
 */
@RestController
public class RabbitMQController {

//    @Resource
//    RabbitTemplate rabbitTemplate;
//
//    @PostMapping("/sendMsg")
//    public void sendMsg(@RequestBody RMsg rMsg) {
//        rabbitTemplate.convertAndSend(rMsg.getExchange(),rMsg.getKey(),rMsg.getContent());
//    }

}
